@charset "UTF-8";

body{
    font-family: Verdana;
}
/*可调用类*/

@mixin header_fiex {
    position: relative;
    padding: 0 0 0 20px;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

@mixin overflow_p {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

// iconfont以及加载更多部分
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.layui-flow-more::before {
    white-space: pre;
    content: ' ';
    clear: both;
    display: table;
}

cite {
    margin: 10px 50px;
}


/*头部*/

.ifa_header {
    background: #3c3c3b;
    @include header_fiex;
    a {
        i {
            display: inline-block;
            background: url("../assets/icon/icon-logo.png") no-repeat;
            background-size: 100% 100%;
            width: 151px;
            height: 17px;
        }
    }
    .ifa_nav {
        .ifa_nav_ul {
            padding-right: 0;
            background: #3c3c3b;
        }
        .ifa_nav_item {
            line-height: 50px;
            a {
                color: #fff;
                &:hover {
                    color: #0ba4dc;
                }
            }
        }
    }
}

.ifa_zsj_controlContent {
    display: none;
    width: 0;
    height: 0;
}

.ifa_content {
    visibility: hidden;
}


/*左边*/

.ifa_content {
    font-size: 0;
}

.ifa_left_content {
    width: 220px;
    border-right: 1px solid #d0cfd8;
    font-size: 14px;
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 50px;
    /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
     ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
        background: rgba(255, 255, 255, 0.75)
    }
    /*定义滚动条轨道 内阴影+圆角*/
     ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.4)
    }
    /*定义滑块 内阴影+圆角*/
     ::-webkit-scrollbar-thumb {
        border-radius: 15px;
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
        background: rgba(0, 0, 0, 0.4)
    }
    .ifa_left_header {
        .ifa_header_div {
            margin: 0;
            line-height: 47.6px;
        }
        .ifa_header_input {
            margin: 0 auto;
            text-align: center;
            color: #333;
            input {
                vertical-align: middle;
                display: none;
            }
            .ifa_checkbox_input {
                width: 16px;
                height: 16px;
                line-height: 16px;
                background: url("../assets/checkbox.png") no-repeat;
                display: inline-block;
                vertical-align: middle;
                cursor: pointer;
            }
            .ifa_checkbox_inputed {
                @extend .ifa_checkbox_input;
                background: url("../assets/checked.png") no-repeat;
            }
        }
    }
    .ifa_left_list {
        border-top: 1px solid #f2f2f2;
        overflow-y: auto;
        ul {
            background: #fff;
            overflow: hidden;
        }
        .ifa_list_tree {
            width: 100%;
            margin-bottom: 60px;
            //overflow: hidden;
            // ============================12.21zsj修改过的 对应左侧图片部分================================
            .ifa_list_item {
                width: 90px;
                height: 90px;
                position: relative;
                padding: 0;
                box-sizing: border-box;
                display: -webkit-box;
                display: -webkit-flex;
                display: flex;
                -webkit-box-pack: justify;
                -webkit-justify-content: center;
                justify-content: center;
                -webkit-box-align: center;
                -webkit-align-items: center;
                align-items: center;
                float: left;
                margin-top: 7px;
                margin-left: 12px;
                background: #ececec;
                overflow: hidden;
                .noUse {
                    display: none;
                }
                .useTag1 {
                    position: absolute;
                    top: 0;
                    left: 0;
                    border-top: 26px solid #0af;
                    border-right: 26px solid transparent;
                }
                .useTag2 {
                    position: absolute;
                    top: 0;
                    left: 0;
                    border-top: 26px solid #ff000e;
                    border-right: 26px solid transparent;
                }
                span {
                    position: absolute;
                    display: block;
                    width: 12px;
                    height: 12px;
                    line-height: 14px;
                    font-size: 12px;
                    color: white;
                    text-align: center;
                    top: 0;
                    left: 0;
                }
                &:hover a {
                    height: 30px;
                }
                a {
                    /*display: none;*/
                    width: 30px;
                    height: 0px;
                    position: absolute;
                    right: 0;
                    top: 0;
                    font-size: 18px;
                    text-align: center;
                    color: white;
                    background: rgba(0, 0, 0, 0.4);
                    cursor: pointer;
                    transition: all .5s linear;
                    -o-transition: all .5s linear;
                    -moz-transition: all .5s linear;
                    -webkit-transition: all .5s linear;
                    overflow: hidden;
                    svg {
                        width: 26px;
                        height: 26px;
                        margin: 2px 0;
                    }
                }
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                    height: auto;
                    text-align: center;
                    vertical-align: middle;
                }
            }
        }
        // =======================12.21=======================================
        .ifa_left_bottom {
            line-height: 42px;
            height: 42px;
            position: absolute;
            bottom: 48px;
            left: 0;
            right: 0;
            background: #fff;
            border-right: 1px solid #d0cfd8;
            p {
                font-size: 14px;
                color: #f24850;
                width: 100%;
                @include overflow_p;
                -webkit-line-clamp: 1;
            }
        }
    }
    .ifa_left_footer {
        @include header_fiex;
        position: absolute;
        padding: 0;
        height: 48px;
        background: #333333;
        border-right: 1px solid #333;
        bottom: 0;
        width: 220px;
        a {
            margin: 0 auto;
            color: #fff;
            font-size: 16px;
            &:hover {
                color: darken(#fff, 20%);
            }
        }
        svg {
            vertical-align: middle;
            margin-right: 8px;
            width: 1.5rem;
            height: 1.5rem;
        }
    }
}


/*右边*/

.ifa_photo_content {
    position: absolute;
    left: 220px;
    top: 49.5px;
    bottom: 0;
    right: 0;
    font-size: 14px;
    background: #d0cfd8;
    /*/!*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*!/
     ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        background-color: #333333;
    }
    /!*定义滚动条轨道 内阴影+圆角*!/
     ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        background-color: #d0cfd8;
    }
    /!*定义滑块 内阴影+圆角*!/
     ::-webkit-scrollbar-thumb {
        border-radius: 15px;
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #555;
    }*/
    .ifa_photo_canvas {
        text-align: center;
        height: 100%;
        .ifa_photo_svg {
            background: #929298;
            width: 190px;
            height: 28px;
            line-height: 28px;
            position: absolute;
            left: 0;
            top: 0;
            color: #fff;
            a {
                color: #fff;
                &:hover svg {
                    color: darken(#fff, 20%);
                }
            }
            svg {
                width: 28px;
                height: 28px;
                vertical-align: middle;
                float: right;
                background: #4c4c4c;
            }
        }
        .ifa_photo_position {
            //margin: 25% 0 0; //计算依据 （100-80.6）/2/2=4.75.取小
            position: relative;
            display: inline-block;
            text-align: center;
            //width: 50%;
            .ifa_arrow {
                position: absolute;
                left: 4%;
                top: 50%;
                margin-top: -83px; //计算依据 47+16+20
                width: 40px;
                height: 48px;
                background: #f5f5f5;
                display: inline-block;
                line-height: 48px;
                svg {
                    width: 25px;
                    height: 25px;
                    vertical-align: middle;
                }

            }
            .ifa_left_disabled {
                color: #bbbbbb;
                cursor: default;
                background: #dedde4;
            }
            .ifa_right_disabled {
                right: 4%;
                left: inherit;
                color: #bbbbbb;
                cursor: default;
                background: #dedde4;
            }
            .ifa_arrow_right {
                right:4%;
                left: inherit;
                color: #6d6d6d;

            }
            .ifa_arrow_left {
                color: #6d6d6d;

            }
        }
        @media (max-width: 768px) {
            //少许兼容ipad
            .ifa_photo_position {
                margin: 30% 0 0;
                .ifa_arrow {
                    left: 0; //计算依据 48*2
                }
                .ifa_arrow_right {
                    right: 0;
                    left: inherit;
                }
            }
        }
        .canvas-container {
            background: #fff;
            width: 100%;
            canvas{
                width: 100%;
                height: auto;
            }
        }
        canvas{
            width: 100%;
            height: auto;
        }
        .ifa_photo_num {
            margin-top: 10px;
            font-size: 14px;
        }
        .ifa_photo_btn {
            a {
                padding: 5px 10px;
                width: 160px;
                color: #fff;
                background: #333;
                font-size: 16px;
                display: inline-block;
                margin: 9px 21px 0;
                border-radius: 50%/75px;
            }
            .ifa_photo_beautify {
                background: #f24850;

            }
            svg {
                height: 28px;
                width: 28px;
                vertical-align: middle;
            }
        }
    }
    .ifa_photo_bottom {
        font-size: 0;
        position: absolute;
        bottom: 0;
        left: -1px;
        height: 150px;
        overflow-x: auto;
        width: 100%;
        overflow-y: hidden;
        ul {
            height: 150px;
            overflow-y: hidden;
            overflow-x: auto;
        }
        li {
            background: #4c4c4c;
            height: 110px;
            padding: 20px;
            display: inline-block;
            border-left: 1px solid #333333;
            div {
                width: 180px;
                height: 90px;
                display: inline-block;
                text-align: center;
                line-height: 70px;
                border: 1px solid #c9c8d1;
                background: #fff;
                img {
                    max-width: 100%;
                    height: 70px;
                    vertical-align: middle;
                }
                canvas {
                    max-width: 100%;
                    height: auto;
                    text-align: center;
                    vertical-align: middle;
                }
            }
            p {
                font-size: 14px;
                text-align: center;
                width: 100%;
                color: #8c8c91;
                margin-top: 12px;
                @include overflow_p;
                -webkit-line-clamp: 1;
            }
        }
    }
}


/*iframe*/

.ifa_page_iframe {
    text-align: center;
    height: 500px;
    .ifa_iframe_begin {
        opacity: 0;
    }
    .ifa_iframe_close {
        border: 1px solid #000000;
        width: 178px;
        height: 24px;
        display: inline-block;
        padding: 10px 15px;
        margin-top: 30px;
    }
    .webuploader-pick {
        background: #000000;
        color: #fff;
        width: 180px;
        height: 24px;
        label {}
    }
    .ifa_iframe_btn {
        padding: 160px 200px;
        a {
            svg {
                height: 24px;
                width: 24px;
                vertical-align: middle;
                margin-right: 5px;
            }
        }
    }
    .ifa_iframe_ul {
        text-align: left;
        margin: 10px;
        overflow: auto;
        .ifa_iframe_li {
            display: inline-block;
            text-align: center;
            background: #ececec;
            margin: 0 5px 5px;
            padding: 10px 0 0;
            .ifa_iframe_name {
                width: 110px;
                @include overflow_p;
                height: 16px;
            }
        }
    }
}


/*iframetitle*/

.ifa_iftitle_edit {
    width: 750px;
    /* position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -110px;
    margin-left: -375px;
    display: none;*/
    background: #fff;
    .ifa_ifinner_content {
        width: 100%;
        height: 100%;
        .ifa_ifmain_edit {
            width: 100%;
            height: 110px;
            margin: 0;
            text-align: center;
            .ifa_ifmain_input {
                width: 90%;
                height: 50px;
                border: 1px solid #a0a0a0;
                margin: 25px auto;
                font-size: 20px;
                line-height: 80px;
                padding: 0 20px;
                color: #333;
                outline: none;
                font-size: 18px;
            }
        }
        .ifa_ifedit_bottom {
            width: 100%;
            height: 86.2px;
            margin: 0;
            border-top: 1px solid #e2e2e2;
            p:nth-child(1) {
                display: block;
                font-size: 14px;
                color: #a0a0a0 ;
                line-height: 70px;
                margin: 0 20px;
                float: left;
            }
            p:nth-child(2) {
                display: block;
                width: 218.4px;
                height: 46.4px;
                float: right;
                margin: 14px 20px;
                border: 1px solid #333;
                color: #333;
                font-size: 16px;
                background: #fff;
                text-align: center;
                vertical-align: middle;
                line-height: 40px;
                cursor: pointer;
                svg {
                    width: 24px;
                    height: 24px;
                    display: inline-block;
                    vertical-align: middle;
                    color: #000;
                }
            }
        }
    }
}


/*全局*/

a {
    cursor: pointer;
}

.clearfix:after {
    content: " ";
    display: block;
    clear: both;
    height: 0;
}

.clearfix {
    zoom: 1;
}

.icon {
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/*滚动条*/
.mCSB_scrollTools .mCSB_draggerRail{
    background: inherit;
}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{
    background: #000;
    opacity: 0.3;
}
.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{
    background: #000;
    opacity: 0.3;
}
.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger{
    width: 223px!important;
}

/*等待页面*/
.ifa_load_bg{
    background:rgba(42,42,44,0.8);
    height: 100%;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    .ifa_load_info{
        color: #f5f5f5;
        font-size: 16px;
        margin: 30px 0 0;
    }
    .sk-circle {
        margin-top: 22%;
        width: 60px;
        height: 60px;
        position: relative;
        display: inline-block;
    }
    .sk-circle .sk-child {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0; }
    .sk-circle .sk-child:before {
        content: '';
        display: block;
        margin: 0 auto;
        width: 20%;
        height: 20%;
        background-color: #0ba4dd;
        border-radius: 100%;
        -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
        animation: sk-circleBounceDelay 1.2s infinite ease-in-out both; }
    .sk-circle .sk-circle2 {
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg); }
    .sk-circle .sk-circle3 {
        -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        transform: rotate(90deg); }
    .sk-circle .sk-circle4 {
        -webkit-transform: rotate(135deg);
        -ms-transform: rotate(135deg);
        transform: rotate(135deg); }
    .sk-circle .sk-circle5 {
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg); }
    .sk-circle .sk-circle6 {
        -webkit-transform: rotate(225deg);
        -ms-transform: rotate(225deg);
        transform: rotate(225deg); }
    .sk-circle .sk-circle7 {
        -webkit-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        transform: rotate(270deg); }
    .sk-circle .sk-circle8 {
        -webkit-transform: rotate(315deg);
        -ms-transform: rotate(315deg);
        transform: rotate(315deg); }
    .sk-circle .sk-circle9 {
        -webkit-transform: rotate(240deg);
        -ms-transform: rotate(240deg);
        transform: rotate(240deg); }
    .sk-circle .sk-circle10 {
        -webkit-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        transform: rotate(270deg); }
    .sk-circle .sk-circle11 {
        -webkit-transform: rotate(300deg);
        -ms-transform: rotate(300deg);
        transform: rotate(300deg); }
    .sk-circle .sk-circle12 {
        -webkit-transform: rotate(330deg);
        -ms-transform: rotate(330deg);
        transform: rotate(330deg); }
    .sk-circle .sk-circle2:before {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s; }
    .sk-circle .sk-circle3:before {
        -webkit-animation-delay: -1s;
        animation-delay: -1s; }
    .sk-circle .sk-circle4:before {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s; }
    .sk-circle .sk-circle5:before {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s; }
    .sk-circle .sk-circle6:before {
        -webkit-animation-delay: -0.7s;
        animation-delay: -0.7s; }
    .sk-circle .sk-circle7:before {
        -webkit-animation-delay: -0.6s;
        animation-delay: -0.6s; }
    .sk-circle .sk-circle8:before {
        -webkit-animation-delay: -0.5s;
        animation-delay: -0.5s; }
    .sk-circle .sk-circle9:before {
        -webkit-animation-delay: -0.4s;
        animation-delay: -0.4s; }
    .sk-circle .sk-circle10:before {
        -webkit-animation-delay: -0.3s;
        animation-delay: -0.3s; }
    .sk-circle .sk-circle11:before {
        -webkit-animation-delay: -0.2s;
        animation-delay: -0.2s; }
    .sk-circle .sk-circle12:before {
        -webkit-animation-delay: -0.1s;
        animation-delay: -0.1s; }

    @-webkit-keyframes sk-circleBounceDelay {
        0%, 80%, 100% {
            -webkit-transform: scale(0);
            transform: scale(0); }
        40% {
            -webkit-transform: scale(1);
            transform: scale(1); } }

    @keyframes sk-circleBounceDelay {
        0%, 80%, 100% {
            -webkit-transform: scale(0);
            transform: scale(0); }
        40% {
            -webkit-transform: scale(1);
            transform: scale(1); } }

}
/*完成*/
.ifa_success_pass{
    position: relative;
    display: inline-block;
    margin-top: 22%;
    img{
        width: 60px;
        height: 60px;
        animation: myfirst 5s;
        -moz-animation: myfirst 3s;  /* Firefox */
        -webkit-animation: myfirst 3s;  /* Safari 和 Chrome */
        -o-animation: myfirst 3s;
    }
}
/*.ifa_success_div{
    position: absolute;
    width: 100px;
    height: 100px;
    animation: myfirst 5s;
    -moz-animation: myfirst 3s;  /!* Firefox *!/
    -webkit-animation: myfirst 3s;  /!* Safari 和 Chrome *!/
    -o-animation: myfirst 3s;
    background:rgb(42,42,44);
    /!*top: 0;
    left:0;*!/
}*/
@keyframes myfirst
{
    0%   {opacity: 0;}
   /* 25%   {opacity: 0.25;}
    50%   {opacity: 0.5;}
    75%   {opacity: 0.75;}*/
    100% {opacity:1;}
}

@-moz-keyframes myfirst /* Firefox */
{
    0%   {opacity: 0;}
   /* 25%   {opacity: 0.25;}
    50%   {opacity: 0.5;}
    75%   {opacity: 0.75;}*/
    100% {opacity:1;}
}

@-webkit-keyframes myfirst /* Safari 和 Chrome */
{
    0%   {opacity: 0;}
   /* 25%   {opacity: 0.25;}
    50%   {opacity: 0.5;}
    75%   {opacity: 0.75;}*/
    100% {opacity:1;}
}

@-o-keyframes myfirst /* Opera */
{
    0%   {opacity: 0;}
    25%   {opacity: 0.25;}
    50%   {opacity: 0.5;}
    75%   {opacity: 0.75;}
    100% {opacity:1;}
}
//@import "ifa_uploader";
//@import "ifa_editor";